package com.springbootcrud.user.service;

import com.github.pagehelper.PageInfo;
import com.springbootcrud.user.controller.CrudController;
import com.springbootcrud.user.entity.Crud;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * Created by Sun on 2020/4/10.
 */
public interface CrudService {
    List<CrudController> getAll(Map map);

    void delete(Integer id);

    void save(Crud crud);

    Crud getById(Integer id);

    void saveCrud(@RequestBody Crud crud);

    //分页
   List<Crud> queryUserInfo();
   //开始使用分页插件
    List<Crud> findAllUserByPageF(int pageNum,int pageSize);
    PageInfo<Crud> findAllUserByPageS(int pageNum,int pageSize);
}
